package com.bwie.dao;

import com.bwie.pojo.GoodsOrder;
import com.bwie.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDao {
    Integer addOrder(Order order);

    int updateOrder(Order order);

    Order getOrder(@Param("userId") Integer userId);

    GoodsOrder getGoodsOrder(@Param("userId") Integer userId);

    Order getOrder2(@Param("orderId") Integer orderId);

    GoodsOrder echo2(@Param("orderId") Integer orderId);

    Order findOrder(@Param("orderId") Integer orderId, @Param("userId") Integer userId);

    void updateStatus(Order order);
}
